package recordstatus

type RecordStatusEnum int

const (
	NotSend RecordStatusEnum = iota + 1
	SendSuccess
	SendFail
)

//自定义返回枚举类型
type recordStatus struct {
	Key   string
	Value string
}

func (it RecordStatusEnum) Get() recordStatus {
	switch it {
	case NotSend:
		return recordStatus{Key: "1", Value: "未发送"}
	case SendSuccess:
		return recordStatus{Key: "2", Value: "发送成功"}
	case SendFail:
		return recordStatus{Key: "3", Value: "发送失败"}
	default:
		return recordStatus{}
	}
}
